projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb74064
)
rockchip: bootrom: add definitions to retrieve BROM boot-source
author
Philipp Tomsich
<
[email protected]
>
Fri, 29 Sep 2017 17:27:55 +0000
(19:27 +0200)
committer
Philipp Tomsich
<
[email protected]
>
Sat, 30 Sep 2017 22:33:34 +0000
(
00:33
+0200)
The Rockchip BROM allows reading where it booted from from SRAM.
This adds the necessary definitions (as received from Kever) for
the location of this information in the RK3399's SRAM and naming
for the constants used.
Signed-off-by: Philipp Tomsich <
[email protected]
>
Reviewed-by: Simon Glass <
[email protected]
>
arch/arm/include/asm/arch-rockchip/bootrom.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/arch-rockchip/bootrom.h
b/arch/arm/include/asm/arch-rockchip/bootrom.h
index 92eb8783a3ae3818399b54319911c2b28a0a6b33..169cc5e50b0e982be3132cb523ec8ceb4c62e948 100644
(file)
--- a/
arch/arm/include/asm/arch-rockchip/bootrom.h
+++ b/
arch/arm/include/asm/arch-rockchip/bootrom.h
@@
-24,4
+24,22
@@
void back_to_bootrom(void);
*/
void _back_to_bootrom_s(void);
+/**
+ * Boot-device identifiers as used by the BROM
+ */
+enum {
+ BROM_BOOTSOURCE_NAND = 1,
+ BROM_BOOTSOURCE_EMMC = 2,
+ BROM_BOOTSOURCE_SPINOR = 3,
+ BROM_BOOTSOURCE_SPINAND = 4,
+ BROM_BOOTSOURCE_SD = 5,
+ BROM_BOOTSOURCE_USB = 10,
+ BROM_LAST_BOOTSOURCE = BROM_BOOTSOURCE_USB
+};
+
+/**
+ * Locations of the boot-device identifier in SRAM
+ */
+#define RK3399_BROM_BOOTSOURCE_ID_ADDR 0xff8c0010
+
#endif